002 how i do it

Hale Markham 到项目 16 现在我要在我的程序中设置一些警报,没有警报就没有 HDMI 是完整的。
Hale Markham to project 16 now I'm going to set up some alarms in my program there's no HDMI is complete without alarms.

我们需要进入我们的项目探索的任务选项卡。
We need to come down here into our tasks tab our projects explore.

在这个警报上,这就是我们要创建这些东西的地方。
And on this alarm's This is where we're going to be creating these things.

但在此之前,我们实际上需要设置一些标签。
But before we do that we're actually going to need to set some tags.

因此,我将返回全局,拉出我的数据表视图,然后继续为我的警报创建四个标签。
So I'm going to come back into global pull up my data sheet view and let's go ahead and create my four tags for my alarms.

所以我有 A-L em 低流量。
So I've got A-L em low flow.

那挺好的。
That's good.

然后我得到了它们的高电平和 HLM L-L 电平低电平,我们得到了 HLM H.H.
Then I've got them high high level we've got and HLM L-L level low level and we've got our HLM H.H.

压力,我想这样就可以了。
pressure and I think that'll do it.

当然,这四个都是布尔值。
And all four of those are of course booleans.

所以我们会仔细检查并消除它们。
So we'll go through and just knock those out.

知道了。
Got it.

然后我们可以回到我们的通讯选项卡并完成这些标签的设置,因为只有地址在那里才能完成工作。
And then we can come back into our communications tab and finish setting up those tags because the job ain't done till the address is in there.

所以我们有我们的高点,我们有我们的低点,我们需要我们的压力,然后我们需要我们的流动几乎押韵。
So we've got our high high we've got our low low we need our pressure and then we need our flow almost rhymed.

现在让我们进入程序,进入闹钟菜单,看看这些东西是什么。
And now let's jump into our program get into our alarm's menu and see what these things are.

所以我们正在寻找通知位,高压是 B-3 for 8。
So we're looking for notification bits and high pressure is B-3 for 8.

所以我们将从压力 B-3 呼叫和强制斜线 8 开始。
So we'll start with pressure B-3 call and force slash 8.

Gura 回到我们的程序中,然后我们得到 10 的低流量 B-3 或跳回低流量,即斜线 10 的 B-3 调用。
Gura on that back into our program then we've got low flow B-3 for 10 or jump back in low flow is B-3 call for slash 10.

我想我是对的。
I think I got that right.

回到我们的节目。
Back to our program.

多来几次。
Couple of more times.

然后我们就有了 12 架低级 B-3。
And then we've got our low level B-3 for 12.

我们的高水平 B-3 为 14 人,所以从低水平开始为 12 人三人,最后一个为 14 人三人。
And our high level B-3 for 14 so start with a low be three for 12 and last one the three for 14.

好的。
Good.

我们所有的警报都在那里。
We've got all of our alarms in there.

然后我们忘记了我们还必须设置重置和静音。
And then we forgot we've also got to set up our reset and silence.

所以这将是 P.B.
So this is going to be P.B.

A-L em 重置,然后是 P.B.
A-L em reset followed by P.B.

一片寂静。
a limb silence.

当然,这些也是布尔值。
Those are also both booleans of course.

然后我们将跳回这里进入我们的驱动程序并进行设置。
And then we'll jump back over here into our driver and we'll set those up.

所以向下滚动这里警报的沉默。
So scroll down here alarm's silence.

向下滚动她的闹钟重置,让我们抓住这两个部分。
Scroll back down her larm reset and let's grab those two bits.

所以沉默是 B-3 3 10,然后重置是 B-3 3 9。
So silence is B-3 three 10 and then reset is B-3 3 9.

因此,这是三个调用和三个斜杠 10,三个整数和三个斜杠 9,这就是我们所有的警报标签,我们需要保存所有并关闭这两个标签文件,我将回到我们的欢迎屏幕,我们需要弄清楚我们要如何指示警报。
So that's be three call and three slash 10 and be three whole and three slash nine that's all of our larm tags that we need to save all and close both of those tag files and I'm going to come back into our welcome screen and we need to figure out how we want to indicate the alarms.

好吧,我们可以使用警报和事件工具,但这确实值得拥有自己的屏幕。
Well we can use the alarm and event tool but that really deserves its own screen.

与此同时,我确实想要一个简单的指示器,告诉我我有警报。
Meanwhile I do want something that's just a simple indicator that's going to tell me that I have an alarm.

那么让我们这样做吧。
So let's do this.

我将来到这里并获取我的欢迎屏幕标签,当我复制并粘贴它时,我将把它变成一个警报指示器。
I'm going to come up here and take my welcome screen label and when I copy and paste that and I'm going to turn it into an alarm indicator.

所以我想做的第一件事就是双击它,我只想骑闹钟。
So first thing I want to do is double click on this and I want to just ride alarm.

感叹号。
Exclamation mark.

现在,我将把背景留空。
Now border for this I'll leave blank the background.

我要变红了
I'm going to make red.

让我们看看我们的字体。
And let's take a look at our fonts.

我们有 20 个,我认为我们不需要,所以我们选择 16 个。
We've got a 20 which I don't think we need so let's go with the 16.

我们将使用标准粗体 Colibri,其颜色为黑色。
We'll use standard bold Colibri the color of this will be black.

然后我们点击“确定”。
And let's hit OK.

关闭。
Close out.

我不喜欢它。
And I'm not loving it.

因为我没有开启后台。
Because I didn't enable background.

现在这看起来像是一个警报指示。
Now that looks like an alarm indication.

是否有任何东西可以让我们选择眨眼,但我们很快就会在这里找到答案。
And is there anything that gives us an option to blink this there might be but we're going to find out here shortly.

现在我已经有人点击它并返回到我的图形选项卡,我想为其提供可见性选项和可能的颜色选项。
Now that I've got someone I click on this and go back into my graphics tab and I want to give this a visibility option and possibly a color option.

那么让我们来看看它们是什么样子的。
So let's take a look and see how those look.

我们首先要做的是我们的颜色。
First thing we've got here is our colors.

那么我想要这个东西的颜色是什么?
So what do I want the color to be on this thing.

如果有或没有警报。
If there is or isn't an alarm.

好吧,这确实不重要,因为我还将使用可见性,因此如果没有警报,我们将无法看到它。
Well it really doesn't matter because I'm going to also use visibility so if there isn't an alarm we're not going to be able to see it.

但我确实希望这个东西能够闪烁,我们会让它快速闪烁,看看它看起来如何。
But I do want this thing to blink and we'll have it actually blink fast and see how that looks.

我的颜色标签是什么?
And what is my color tag going to be.

好吧,我的两个标签都会发出警报 H.H.
Well both of my tags are going to be alarm H.H.

等级。
level.

所以我已经设置了颜色,我认为这就是我想要的方式。
So I've got my colors set up and I think that's the way that I want that.

然后让我们继续进入可见性位置,或者可见性也将被设置为警报高高水平,我不会真正使用位置,我真的只是想要可见性,所以让我们关闭那里,我不会确定这将如何工作,所以我将继续测试它,因为我将把它放在每个上。
Then let's go ahead and go into visibility position and or visibility is also going to be set to that alarm high high level and I'm not really going to use position I really just wanted visibility so let's close out of there and I'm not sure how this is going to work so I'm just going to go ahead and test it because I'm going to put this on each.

我将为四个警报中的每一个创建一个,然后将所有四个警报放在我们所有的屏幕上。
I'm going to create one of these for each of our four alarms and then I'm going to put all four of them on all of our screens.

因此,在我这样做之前,我想测试一下它,并确保它实际上看起来像我所期望的那样,并且想要用一堆非常难看的标签来发挥创意,但我不会高兴。
So before I do that I want to test this and make sure it actually looks like I expect otherwise and want to be creative with a bunch of really ugly tags and I'm not going to be happy.

因此,让我们继续运行,然后返回到我的欢迎屏幕,现在我没有闹钟,所以这就是我不显示闹钟的原因。
So let's go ahead and go into run and let's go back to my welcome screen and right now I don't have an alarm so that's why I'm not showing one.

让我们按 Alt-Tab 返回我们的 APRC 程序。
Let's Alt-Tab to get back into our APRC program.

我将进入 Symm,并将水箱液位设置为原始信号零。
I'm going to go into Symm and I'm going to set that tank level to a raw signal of zero.

我会告诉你什么会产生警报,我想说它就在那里,但它还不在那里,我现在也没有看到它。
I'll tell you what that's going to create an alarm and I want to say There it is but it's not there yet and I'm not seeing it now.

所以这可能是某些东西不起作用的迹象。
So that's probably a sign that something's not working.

让我们回到程序,看看我是否确实生成了警报,果然我看到这里确实有警报,但我生成的是低电平而不是高电平,这是愚蠢的。
Let's go back into the program and see if I did actually indeed in fact generate an alarm and sure enough I'm seeing that I do have an alarm here but I generate a low low level not a high high level that was stupid.

所以让我们回到 sim 中,这一次让我们把这个数字调高到 16 393 好,这会给我们一个高高的警报,然后我们就开始了。
So let's come back in the sim and this time let's bump that thing up to 16 393 OK that'll give us a high high alarm and there we go.

这也正是我想要的样子。
And that's exactly what I want this thing to look like too.

如此甜蜜。
So sweet.

好的。
All right.

我们回到这里吧。
Let's go back in here.

复制和粘贴。
Copy and paste.

再粘贴再粘贴。
Paste again paste again.

我们将对所有警报执行同样的操作。
And we're going to do the same thing with all of our alarms.

因此,这个不是最高点,而是我们的最低点,我可以这样输入。
So instead of this one being a high high this one is going to be our low low and I can just type that in there like that.

所以我们需要在颜色上做到这一点,然后我们需要在可见性上做到这一点。
So we need to do that on colors and then we need to do that on visibility.

很好,你可以离开那里。
Very good you can close out of there.

这是我的最低点,这是我的最高点,这将是我的压力。
That's my low low this is my high high and this is going to be my pressure.

因此,我将继续双击颜色压力。
So I'll go ahead and just double click on pressure for colors.

能见度压力也是如此。
And same thing for visibility pressure.

关闭它,然后我还有一个,我需要为弗洛做同样的事情。
Close it and then I've got one more and I need to do the same thing for Flo.

这是我的低流量颜色,这是我的低流量可见度。
So here's my low flow colors and there's my low flow on visibility.

明白了,很好。
Got it good.

现在我需要把这些东西堆起来。
Now I need to stack these things up.

所以把它们放在一起,然后我想选择这个,我要把它拉到这里,我会把它放在那里。
So put them all right on top of each other and then I want to select this and I'm going to pull it up here and I'll put it right about there.

这可能是一个好地方。
That's probably a good place for it.

然后我要复制它。
And then I'm going to copy that.

我将把它放在我的概览屏幕上。
I'm going to put that on my overview screen and.

哦,我在同一个地方没有空间,所以我会把它放在屏幕上。
Oh I don't have room in the same place so I will put it right down here on the screen.

然后让我们看看我们的安全屏幕。
Then let's look at our security screen.

我们会去那里。
We'll go there.

这里运行时间。
Here run time.

它会进入标准位置。
It it'll go in the standard position.

HBO的重量和配置都一样。
HBO weighs same and then configuration.

我们不想遗漏这一点。
We wouldn't want to leave that out.

因此,让我们继续解决这个问题。
So let's go ahead and pull that over.

所以现在我的所有屏幕上都有一个警报指示器。
So now I have an alarm indicator on all of my screens.

如果这些警报中的任何一个处于活动状态,我们都会看到一个闪烁的框出现,表示警报,如果这些警报都没有处于活动状态,那么我们将看不到任何内容。
If any of those alarms is active we'll see a flashing box appear saying alarm if none of those is active then we won't see anything.

现在,这不会告诉我们有什么警报需要警报页面,但它会告诉我们转到警报页面,因为有一些东西需要查看和处理。
Now this won't tell us what alarm we have will need our alarm page for that but it will tell us to go to the alarm page because there's something to look at and deal with.

那么设置闹钟怎么样?
So how about setting up that alarm.

让我们进入图形选项卡。
Page let's come into our graphics tab.

右键单击屏幕进行插入,我们将此称为警报,并将其设置为 700 x 600 的标准分辨率,然后单击“确定”。
Right click on screen take insert we'll call this alarms and give it our standard resolution of 700 by 600 and hit OK.

现在我们已经有了这个屏幕,让我们继续欢迎。
And now that we've got that screen let's go ahead and come back to welcome.

复制。
Copy.

所有人都将其带回此处并将其粘贴到位。
All bring that back in here and paste it put it into position.

当我继续更改欢迎说警报的屏幕时。
And when I go ahead and change that welcome to say alarm's screen.

你可以关闭它。
You can close out of that.

现在我们可以开始处理其中一些按钮,这样我就可以摆脱对这些符号的所有工作。
And now we can start working on some of these buttons so I can get rid of all of this work on these symbols.

摆脱这一切。
Get rid of all of that.

我可能会保留我的一个标签。
I might keep one of my labels.

可能不会。
Probably not.

让我们继续前进,摆脱一切。
Let's go ahead and just get rid of everything.

现在我们实际上有了一个警报屏幕。
So now we actually have an alarm screen.

让我们点击 Savol,果然第三个屏幕将被称为警报保存。
Let's click on Savol and sure enough screen three will be called alarm's save that.

然后我们需要设置导航。
And then we need to set up our navigation.

我们确实希望在获得预订的按钮后能够到达这里。
We do want to be able to get here when we've got this button that we reserved.

所以我会继续把它放回原位。
So I'll go ahead and put that back into position.

我把它关掉了,这样我就会记得那是需要改变的。
I had it kind of off so that I would remember that that was one that needed to be changed.

让我们回到按钮属性,只需在其上输入警报即可。
And let's go back to the button properties and just type in alarms on that and we're good.

让我们复制它并将其粘贴到各处。
Let's copy it and paste it everywhere.

保安已经做好了迎宾工作。
Security gets one welcome's already done.

概述需要一个。
Overview needs one.

然后我将设置一个警报,因为我们要将其更改为欢迎屏幕。
And then I'll put one on alarms because we're going to change that to our welcome screen.

因此,让我们继续做出改变。
So let's go ahead and make that change.

返回按钮并欢迎。
Back to button and welcome.

好的。
Good.

现在让我们回顾一下并把这个东西放在它该放的地方。
And now let's go through and put this thing where it goes.

我已经删除了最后一个按钮,这样就容易多了。
I already deleted that last button so that makes this a lot easier.

不必进行大量删除,然后我只需要将其中一个屏幕上的所有内容向下移动就可以了。
Don't have to go through and do a bunch of deletions and then I just need to shift everything down on one of my screens and I'll be fine.

所以我们没有从这里删除它。
So we didn't delete it from here.

让我们继续并在那里打孔。
Let's go ahead and punch that there.

回到我们的警报。
And back to our alarms.

我们想删除它。
We want to delete that.

把所有东西都移过来,把welcome放在第一位,并确保没有任何东西移动。
Move everything over and put welcome in the first position and make sure that nothing moves.

好的。
Good.

我这里有导航。
And I've got navigation in here.

那么现在我想在闹钟屏幕上显示什么。
So now what do I want to show on my alarm screen.

嗯,这就是变得容易的地方,因为我想进入图形警报事件,并且我将画一个漂亮的大警报工具。
Well that's where this is going to get easy because I want to come into graphics alarm event and I'm going to draw a nice big alarm tool.

就这样。
Just like that.

那应该就完美了。
That should be about perfect.

实际上,我好像禁用了 Snap。
And actually it looks like I have Snap's disabled.

所以不,我不。
So no I don't.

只是在我画画的时候它并没有很好地捕捉,但这很好。
It just doesn't really snap very well while I'm drawing that's fine.

让我们稍微延伸一下。
And let's stretch this out a little bit.

不太极端。
Not too extreme.

我认为这很好用。
I think that works fine.

它为我们需要创建的按钮留下了空间。
And it leaves us room for our push buttons which we need to create.

所以让我们到这里来,我将扔其中一个,我们将把它们做得很大,双击它,这将是我们的警报。
So let's go down here and I'll throw one of these and we'll make those kind of big and it's double click that and this is going to be our alarm.

保持安静,到这里来,这将是警报静音,我们将其配置为警报静音。
Silence and come down here and that's going to be alarmed silence and we'll configure that to say alarm silence.

这是复制粘贴在此处的标题。
That's copy that caption pasted over here.

那么颜色呢?
And what about colors.

对于这个颜色,我想我会把它变成蓝色,因为现在为什么不呢。
Well for colors on this I think I'll make it blue because now why not.

然后我会把它变成深蓝色。
And then I'll turn that into a darker blue.

每当有人推动它时,看起来怎么样?
Whenever someone pushes it and how does that look fine.

但我想稍微修改一下标题。
But I would like to work on that caption a little bit.

因此,让我们继续更改字体,将其设为黑色,也许实际上将其大小设为 10。
So let's go ahead and change the font and let's make that black and maybe make that size 10 actually.

我将继续将其保留为粗体并将其设为 12。
I'll just go ahead and leave it bold and make it 12.

我认为这是一个很好的权衡。
I think that's a good trade off.

好吧,我真的没有看到任何区别。
And well I'm really not seeing any difference on that.

所以这让我有点沮丧。
So that's kind of bumming me out.

我想知道为什么这么大胆。
I wonder why that is bold.

它仍然显示八次重试。
It still shows eight try again.

我们开始吧。
There we go.

花了那个时间。
It took that time.

因此,让我们复制该按钮并将其放在此处。
So let's copy that button bring that right down here.

这将是我们的重置。
And this is going to be our reset.

因此,让我们关闭它并拉入要配置的按钮警报重置,我们只需用重置副本替换静音并将其粘贴到另一侧。
So let's close that out and pull in our pushbutton alarm reset going to configure and we'll just replace silence with reset copy that and paste it over to the other side.

好的。
OK.

我们就这样吧。
And there we go.

我们已经设置了警报屏幕。
We've got our alarm screens set up already.

那很简单。
That was easy.

应该可以做到这一点。
That should do it.

我想我们已经设置了警报屏幕。
I think we've got an alarm screen set up.

现在让我们将警报放入我们的任务中。
So now let's put our alarms into our tasks.

我们将进入此选项卡,右键单击警报并插入,然后将四个警报放入其中。
We're going to come into this tab right click on alarms and insert and then let's drop our four alarms in.

因此,我们有高高水位、高压、低水位和低低流量。
So we've got our high high level we've got our high higher pressure our low low level and our low low flow.

这些都将被视为最高点,我们将对所有这五点五设置限制。
These are all going to be treated as high highs and we're going to put a limit on all of these five point five.

所以请记住,当我们关注数字时,我们关注的是一点。
So remember when we're looking at digital we're looking at a bit.

它要么等于 0,要么等于 1,如果它等于 0。
It's either equal to zero or one if it's equal to zero.

它将低于限制,如果等于 1,则将高于限制。
It's going to be below the limit and if it's equal to one it's going to be above the limit.

这意味着有问题。
And that's going to mean that there's a problem.

因此,对于消息,我们将继续将水箱液位设置为高,而我们的副本则为,因为我知道我将要在这里使用它,而不是高,它会很低,我什至会将其粘贴到此处,因为它不是坦克液位将是系统压力,然后我们还需要低流量。
So for messages will go ahead and put tank level high and our copy that because I know I'm going to want to use that here and instead of high it will be low and I'll even paste that here because instead of tanked level it'll be system pressure and then we also need low flow.

我们开始吧。
There we go.

应该可以做到这一点。
That should do it.

截至目前,我相信我们的警报已经完全设置完毕。
As of right now I believe our alarms are completely set up.

我会说,如表 1 所示,就是这样,我们将在下一堂课中回来测试这个东西,看看我是否正确,否则我会修复它。
I'll say that as sheet 1 and that's it we will come back in the next lecture and test this thing out and see if I'm right otherwise I'll fix it.

然后我就会是对的。
And then I will be right.

那我到时候见。
So I'll see you then.

干杯
Cheers